import request from '@/utils/request'

export function getRodListAPI(params) {
  return request({
    url: '/pole/info/list',
    params
  })
}
export function delRodAPI(ids) {
  return request({
    url: `/pole/info/${ids}`,
    method: 'DELETE'
  })
}
export function getAreaDropListAPI() {
  return request({
    url: '/parking/area/dropList'
  })
}
export function addRodAPI(data) {
  return request({
    url: '/pole/info',
    method: 'POST',
    data
  })
}
export function editRodAPI(data) {
  return request({
    url: '/pole/info',
    method: 'PUT',
    data
  })
}
export function getWarningListAPI(params) {
  return request({
    url: '/pole/warning/list',
    params
  })
}
export function getWarningDetailAPI(id) {
  return request({
    url: `/pole/warning/${id}`
  })
}
